﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ObraEditForm.aspx.cs" Inherits="UILGestion.Admin.Obras.ObraEditForm" %>



<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>

<%@ Register assembly="WebLib" namespace="WebLib" tagprefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%--needed for WebMethods--%>
<%@ Import Namespace="System.Web.Script.Services" %>
<%@ Import Namespace="System.Web.Services" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>OBRA</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
</head>
<body>
    <form id="form1" runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
 EnableScriptGlobalization="true"  EnablePartialRendering="true">
    </asp:ToolkitScriptManager>
    <uc1:menuCtrl ID="menuCtrl1" runat="server" />
   <asp:Panel ID="pnlMain" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label2" runat="server" Text="EDITAR OBRA" 
             style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>

          <asp:Panel ID="PanelButtom" runat="server"     class="ms-crm-Form-Body" >   
                 
      <input type="hidden" runat="server" name="internalid" id="internalid" />      
       <input type="hidden" runat="server" name="idPadre" id="Hidden2" /> 
       <input type="hidden" runat="server" name="type" id="type" /> 
    

  
                   <table >
<tr>

<td>
    <asp:Button ID="saveButton" runat="server" Text="Guardar"   CssClass="ms-crm-List-Header" 
       OnClick="btnSaveContinue_Click"     /></td>
<td>
    <asp:Button ID="cancelarButton" runat="server" Text="Cancelar"   CssClass="ms-crm-List-Header" 
       OnClick="btnSaveContinue_Click" Width="80px" /></td>
        <td></td>
        <td> 
    <asp:Button ID="refreshButton" runat="server" Text="Restablecer" onclick="btnSaveContinue_Click"   CssClass="ms-crm-List-Header" 
          /></td>  <%--onclick="refreshButton_Click" --%>
 
</tr>
</table>
                </asp:Panel>

<asp:Panel ID="PanelBody" runat="server"  BackColor="white" >

                 
                 
      <input type="hidden" runat="server" name="internalid" id="Hidden1" />      
       
        
     <table>
   
                    <tr><td align="right"  width="100px">Codigo:</td><td>
                        <asp:Label ID="codigoLabel" runat="server" Text=""></asp:Label>
                        </td>
                        <td align="right" >Cliente:</td>  <td>
                            
                 
                             <cc1:Input  ID="ClienteTextBox" runat="server" Width="400" ></cc1:Input>

                 
                        </td>
                      
                        </tr>
                    <tr><td align="right"  width="100px">Empresa:</td> <td>
                         <asp:DropDownList ID="empresaDDL" runat="server"  AutoPostBack="true"
                             Width="400" onselectedindexchanged="empresaDDL_SelectedIndexChanged">
                         </asp:DropDownList>
                        </td>
                         <td align="right" >
                             &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        
                        </tr>
                    <tr>
                        <td align="right" width="100px">
                            Proyecto:</td>
                        <td>
                        <asp:UpdatePanel runat="server" ID="proyectoUPNL">
                        <ContentTemplate>
                                <asp:DropDownList ID="proyectoDropDownList" runat="server"  Width="400"></asp:DropDownList>
                        </ContentTemplate>
                        <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="empresaDDL" />
                        
                        </Triggers>
                        </asp:UpdatePanel>
                            
                        </td>
                        <td align="right">
                            Centro Costos:</td>
                        <td>
                            <asp:TextBox ID="centroCostoTextBox" runat="server" ></asp:TextBox>
                        </td>
                    </tr>
                    <tr><td align="right"  width="100px">Descripcion:</td>  
                    <td>
                       
                        <asp:TextBox  ID="descripcionTextBox" runat="server" Width="400"
                         ></asp:TextBox>
                        </td>
                      
                      <td align="right" >
                            Fecha Inicio:</td>
                        <td>

                           
                           <asp:TextBox ID="fechaTextBox" RunAt="Server" BackColor="Transparent"  
                                Width="90px"></asp:TextBox>
                                     <asp:ImageButton runat="Server" 
                            ID="ImageButton1"  ImageUrl="~/Images/month.gif"    
                                AlternateText="Click aqui para mostrar calendario" Width="16px" />
                              <asp:CalendarExtender ID="CalendarExtender2" runat="server" 
                                                                                                            TargetControlID="fechaTextBox"
                                                                                                            PopupButtonID="ImageButton1"></asp:CalendarExtender>
                        </td>
                      
                      </tr>
                    <tr><td align="right"  width="100px">Direccion Obra:</td>  <td>
                        
                        <cc1:Input ID="direccionTextBox" runat="server" Width="400"
                         ></cc1:Input>
                        </td>
                         <td align="right" >
                            Incluye IGV:</td>
                        <td>
                            <asp:CheckBox ID="incluyeIGVCheckBox" runat="server"  />
                        </td></tr>
                    <tr><td align="right"  width="100px">Direccion Almacen:</td>  <td>
                         <cc1:Input ID="direccionEntreTextBox" runat="server" Width="400px"
                         ></cc1:Input>
                        
                        </td>
                        
                         <td align="right" > Tipo Cambio Contrato $:</td>
                        <td><cc1:Input ID="TipoCambioTextBox" runat="server"   ></cc1:Input>
                        </td>
                        </tr>
                    <tr><td align="right"  width="100px">Direccion Facturación:</td> 
                    
                    <td><asp:TextBox ID="direccionFacturacionTextBox" runat="server" Width="400px" >
                    </asp:TextBox></td>
                    
                    
                      <td align="right" >
                            Responsable Entrega:</td>
                        <td>
                           
                             <cc1:Input ID="responsableEntregaTextBox" runat="server"  
                                 Width="400px" ></cc1:Input>
                        </td>
                    
                    </tr>
                    <tr>
                        <td align="right"  width="100px">
                            Pais:</td>
                        <td>
                            <asp:UpdatePanel ID="panelPais" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                   
                                   <asp:DropDownList ID="paisDropDownList" runat="server" AutoPostBack="true" 
                                        OnSelectedIndexChanged="paisDropDownList_SelectedIndexChanged" Width="200" >
                                    </asp:DropDownList>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>

                        <td align="right"> Tipo Obra:
                        </td>
                        <td>
                            
                             <asp:DropDownList ID="actividadDropDownList" runat="server" Width="200px"  >
                             </asp:DropDownList>
                        </td>

                    </tr>
                    <tr><td align="right"  width="100px">Departamento:</td>  <td>
                    <asp:UpdatePanel ID="panelDepartamento" UpdateMode="Conditional" runat="server">
                        <ContentTemplate>
                    
                         <asp:DropDownList ID="departamentoDropDownList" 
                         AutoPostBack="true" runat="server" Width="200" 
                         OnSelectedIndexChanged="departamentoDropDownList_SelectedIndexChanged">
                         </asp:DropDownList>

                        </ContentTemplate>
                        </asp:UpdatePanel>
                        </td></tr>
                    <tr><td align="right"  width="100px">Provincia:</td>  <td>
                    <asp:UpdatePanel ID="panelProvincia" UpdateMode="Conditional" runat="server">
                <ContentTemplate>
                  
                         <asp:DropDownList ID="provinciaDropDownList"  
                         OnSelectedIndexChanged="provinciaDropDownList_SelectedIndexChanged"
                          AutoPostBack="true"  runat="server" Width="200"  >
                        </asp:DropDownList>
                        </ContentTemplate>
                        </asp:UpdatePanel>
                        </td></tr>
                    <tr><td align="right"  width="100px">Distrito:</td>  <td>
                    <asp:UpdatePanel ID="panelDistrito" UpdateMode="Conditional" runat="server">
                <ContentTemplate>
                <asp:DropDownList
                 ID="distritoDropDownList"  
                        AutoPostBack="true" runat="server" Width="200" 
                        >

                       </asp:DropDownList>
                        
                        </ContentTemplate>
                        </asp:UpdatePanel>
                        </td></tr>

    </table>
   
    </asp:Panel>
    </form>
</body>
</html>
